﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WoWAPI
{
	public class Common
	{
		public static Faction GetFactionFromRace(WoWAPI.Character.Races race)
		{
			if (race == Character.Races.BloodElf || 
				race == Character.Races.Goblin || 
				race == Character.Races.Orc || 
				race == Character.Races.Tauren || 
				race == Character.Races.Troll || 
				race == Character.Races.Undead)
				return Faction.Horde;
			else
				return Faction.Alliance;
		}
	}

	public enum Faction
	{
		Horde,
		Alliance
	}
}
